<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"> 
<title>教程</title> 
	 <!--[if lt IE 9]>
    <script src="../js/jquery-1.11.3.js"></script>
    
<![endif]-->
<!--[if gte IE 9]><!-->
    <script src="../js/jquery-3.1.1.js"></script>
<!--<![endif]-->
<script>
$(document).ready(function(){
  $("input").focus();
  $(":focus").css("background-color","yellow");
   $("input").focus(
   function(){
    $(this).css("background-color","yellow");
   }
  );
});
</script>
</head>
<body>

<input type="text" /><br>
 <input type="text" /><br>
 <input type="text" /><br>
 <input type="text" /><br>
 <input type="text" /><br>
 
</body>
</html>